package com.pet.server.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-server-domain-entity-Goods")
@Data
@NoArgsConstructor
@TableName(value = "t_goods")
public class Goods implements Serializable {
  private static final long serialVersionUID = -3496232588412434319L;
  public static final String COL_ID = "id";
  public static final String COL_GOODS_NAME = "goods_name";
  public static final String COL_GOODS_TYPE = "goods_type";
  public static final String COL_GOODS_FLAVOR = "goods_flavor";
  public static final String COL_GOODS_MATERIAL = "goods_material";
  public static final String COL_GOODS_PRICE = "goods_price";
  public static final String COL_GOODS_USAGE = "goods_usage";
  public static final String COL_PRODUCTION_LOC = "production_loc";
  public static final String COL_PRODUCTION_TIME = "production_time";
  public static final String COL_GOODS_EXPIRATION = "goods_expiration";
  public static final String COL_GOODS_SUPPLIER = "goods_supplier";
  public static final String COL_GOODS_DESC = "goods_desc";
  public static final String COL_GOODS_PACKING = "goods_packing";
  public static final String COL_SMALL_IMG = "small_img";
  public static final String COL_BIG_IMG = "big_img";
  public static final String COL_SHOP_ID = "shop_id";

  /** id */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "id")
  private Integer id;

  /** 商品名称 */
  @TableField(value = "goods_name")
  @ApiModelProperty(value = "商品名称")
  private String goodsName;

  /** 商品品类 */
  @TableField(value = "goods_type")
  @ApiModelProperty(value = "商品品类")
  private String goodsType;

  /** 口味 */
  @TableField(value = "goods_flavor")
  @ApiModelProperty(value = "口味")
  private String goodsFlavor;

  /** 材质工艺 */
  @TableField(value = "goods_material")
  @ApiModelProperty(value = "材质工艺")
  private String goodsMaterial;

  /** 价格 */
  @TableField(value = "goods_price")
  @ApiModelProperty(value = "价格")
  private Double goodsPrice;

  /** 商品用途 */
  @TableField(value = "goods_usage")
  @ApiModelProperty(value = "商品用途")
  private String goodsUsage;

  /** 产地 */
  @TableField(value = "production_loc")
  @ApiModelProperty(value = "产地")
  private String productionLoc;

  /** 生产日期 */
  @TableField(value = "production_time")
  @ApiModelProperty(value = "生产日期")
  private LocalDateTime productionTime;

  /** 保质期 */
  @TableField(value = "goods_expiration")
  @ApiModelProperty(value = "保质期")
  private String goodsExpiration;

  /** 供应商 */
  @TableField(value = "goods_supplier")
  @ApiModelProperty(value = "供应商")
  private String goodsSupplier;

  /** 特色说明 */
  @TableField(value = "goods_desc")
  @ApiModelProperty(value = "特色说明")
  private String goodsDesc;

  /** 包装规格 */
  @TableField(value = "goods_packing")
  @ApiModelProperty(value = "包装规格")
  private String goodsPacking;

  /** 小图 */
  @TableField(value = "small_img")
  @ApiModelProperty(value = "小图")
  private String smallImg;

  /** 大图 */
  @TableField(value = "big_img")
  @ApiModelProperty(value = "大图")
  private String bigImg;

  /** 门店ID */
  @TableField(value = "shop_id")
  @ApiModelProperty(value = "门店ID")
  private Integer shopId;
}
